package com.itcm.skymail.product.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 描述:
 *
 * @author cm_fighting
 * @create 2020-09-11 5:33 下午
 */
@Configuration
@EnableTransactionManagement // 开启事务
public class MybatisConfig {

    /**
     * 分页插件
     */

    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}
